/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.opu.pc.util;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

/**
 *
 * @author Yuriy Dunko
 */
public class DateUtil {

    public static int getYear(Date date){
        GregorianCalendar c = new GregorianCalendar();
        c.setTime(date);
        return c.get(Calendar.YEAR);
    }

}
